<?php

namespace app\index\model;

use think\Model;

class ExplainStudent extends Model
{
    public function getImageAttr($value)
    {
        return $value ? request()->domain().$value : '';
    }

    public static function getAll()
    {
        return self::field('image, content')->order('weigh desc')->select();
    }
}
